package com.wish233.wrpcspringbootstarter.annotation;

import com.wish233.wrpcspringbootstarter.boostrap.RpcConsumerBootStrap;
import com.wish233.wrpcspringbootstarter.boostrap.RpcInitBootStrap;
import com.wish233.wrpcspringbootstarter.boostrap.RpcProviderBootStrap;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author WHH
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Import({RpcConsumerBootStrap.class, RpcInitBootStrap.class, RpcProviderBootStrap.class})
public @interface EnableWrpc {

    /**
     * 是否需要启动服务器
     *
     * @return
     */
    boolean needServer() default false;

}
